import java.util.Scanner;

public class Main1609 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int x=a%10;//4
        int y=(a/10)%10;//3
        int z=(a/100)%10;//2
        int j=a/1000;//1
        int b=z+j*10;
        int c=y*10+x;
        double d=b*1.0/c;
        System.out.println(b+c);
        System.out.println(String.format("%.1f",d));

    }
}
